
<!DOCTYPE html>
<html lang="en">
<head>

    <title>添加题目的页面</title>
    <!-- 引入js文件 -->
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/resources/bootstrap/css/bootstrap.min.css" />
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/jquery/jquery-1.11.0.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/jquery/jquery-migrate-1.2.1.min.js"></script>
    <!-- 导入bootStrap的库 -->
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/easyUI/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/easyUI/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/easyUI/easyui.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/resources/blockUI/jquery.blockUI.js"></script>



    <script>

        $(function () {
            //弹框提示信息
            if("${tip}"){
                $.messager.show({
                    title:'添加题目',
                    msg:"<span style='color:red;'>${tip}</span>",
                    showType:'slide'
                });
            }
        })
    </script>
</head>
<body>
<center>
<#--${tip}-->
<#--${username}${msg}-->
    <form id="updateUserForm" action="/problem/addProblem" method="post" enctype="multipart/form-data"><#--注意上传文件一定要enctype为“multipart/form-data”-->
        <table class="table-condensed">
            <tbody>
            <tr>
                <td><label>ID:</label></td>
                <td><input id="id" name="id" type="text" class="form-control" placeholder="请输入id"></td>
                <td><label>题型:</label></td>
                <#--<td><input id="type" name="type" type="text" class="form-control" placeholder="请输入题目类型"></td>-->
                <td><select name="type">
                    <option value="作文">作文</option>
                    <option value="听力A">听力A</option>
                    <option value="听力B">听力B</option>
                    <option value="听力C">听力C</option>
                    <option value="选词填空">选词填空</option>
                    <option value="信息匹配">信息匹配</option>
                    <option value="阅读A">阅读A</option>
                    <option value="阅读B">阅读B</option>
                    <option value="翻译">翻译</option>
                </select>
            </tr>
            <tr><td colspan="4" align="center"><label>题目</label></td></tr>
            <tr>
                <td colspan="4"><textarea id="question" name="question" wrap="hard" rows="10" cols="70"></textarea></td>

            </tr>
            <tr><td colspan="4" align="center"><label>选项</label></td></tr>
            <tr>
                <td colspan="4"><textarea id="options" name="options" wrap="hard" rows="10" cols="70"></textarea></td>
            </tr>
            </tr>
            <tr><td colspan="4" align="center"><label>答案</label></td></tr>
            <tr>
                <td colspan="4"><textarea id="answer" name="answer" wrap="hard" rows="10" cols="70"></textarea></td>
            </tr>
            <tr>
                <td><label>分值:</label></td>
                <td><input id="score" name="score" type="text" class="form-control" placeholder="请输入分值"></td>
            </tr>

            </tbody>
        </table>
    <#--<div align="center" style="margin-top: 20px;">-->
    <#--<a id="btn_submit" class="btn btn-info"><span-->
    <#--class="glyphicon glyphicon-edit"></span>&nbsp;修改</a>-->

        <input type="submit" class="btn btn-info" value="添加">
    <#--<input type="submit" value="确认"/>-->

        <button type="reset" class="btn btn-danger">
            <span class="glyphicon glyphicon-remove"></span>&nbsp;重置
        </button>
        </div>
    </form>

</center>
</body>
</html>